
Page({
    data: {
        wether:false,

        show1:true,     /**显示 */
        show2:false,    /**隐藏 */

        hidden1:true,   /**隐藏 */
        hidden2:false,  /**显示 */

        day:1,
        list:['小乔','大乔','周瑜','孙策'],
        title:'微信小程序第一天',

        heigth:200,
        mgs:'',
        
    },

    handleTap(e){
        console.log(e.target.dataset.index);
    },
    tap(){
        console.log(this.data.title);
        // 设置修改
        this.setData({
            title:Date.now()
        })
    },
    taps(e){
        console.log(e);
        // const heigth = this.data.heigth;
        const { heigth } = this.data;
        // const num = e.target.dataset.num;
        const { num } = e.target.dataset;
        this.setData({
            heigth: heigth + num
        })
    },
    handleInput(e){
        console.log(e);
        const { value } = e.detail
        this.setData({
            mgs:value
        })
    }
   
})
